package com.bawei.hgshop.service;

import java.util.List;

import com.bawei.hgshop.entity.Cart;
import com.bawei.hgshop.entity.User;

public interface UserService {
	
	int register(User user);

	User login(User user);

	// 购物车列表
	List<Cart> listCart(int uid);

	//添加到购物车
	void addCart(Cart cart);

	/**
	 * 
	 * @param uid  用户的id
	 * @param cartIds 购物车id
	 */
	void createOrder(int uid,int[] cartIds);

}
